#include <iostream>
#include <cstdio>
#include "includeall.h"

int main(int argc, char **argv)
{
    Oribi::OribiApp app;

    int stat = app.initialise();
    Oribi::AnimatedSprite spr(app.getResources().getSpriteSheet(Oribi::Resources::maleHuman),
                              {0, 0, 48, 48}, {1, -1});

    spr.base = {24, 36};
    //app.getGraphicContext().addSprite(&spr);

    if (stat)
    {
        std::cout << "Initialisation returned with " << stat << std::endl;
        return 1;
    }

    app.mainLoop();

    app.shutDown();
    return 0;
}
